<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>31_属性-查询</title>
    </head>
    <body>
        <script>
            var person = {name:'zs',age:18};

            console.log(person.age);
            console.log(person['name']);
            
        </script>
    </body>
</html>